home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************************/
- /* myClikLoop */
- /* */
- /* Note: executed repeatedly when the mouse is held down, and dragged outside of */
- /* the viewRect */
- /************************************************************************************/
-
- #include "MyHeaders.h"
-
- pascal Boolean myClikLoop()
- {
- short myClikRetCode;
- Point myMouseLoc;
- short vScrollAmt;
-
- myClikRetCode = TRUE;
-
- GetMouse (&myMouseLoc);
-
- GetClip(workRegionH); /* sve clip rgn */
- ClipRect(&(*windTbl[windSub].windPtr).portRect); /* reset it */
-
- if (myMouseLoc.v > (**windTbl[windSub].windTEH[0]).viewRect.bottom) /* down */
- myActionProc (windTbl[windSub].windCntlH[0], inDownButton);
- else
- if (myMouseLoc.v < (**windTbl[windSub].windTEH[0]).viewRect.top) /* up */
- myActionProc (windTbl[windSub].windCntlH[0], inUpButton);
-
- SetClip(workRegionH); /* restore clip */
-
- return myClikRetCode;
- }
-